package com.self.match.disruptor;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @version v1.0
 * @ClassName: disruptorProperities
 * @Description:
 * @Author: Mac
 */
@Data
@ConfigurationProperties(prefix = "disruptor")
public class DisruptorProperities {

    //缓冲区大小
    private int ringBufferSize = 1024 * 1024;

    /**
     * @Title: 是否为多生产者，
     * 如果是则通过 RingBuffer.createMultiProducer创建一个多生产者的RingBuffer，
     * 否则通过RingBuffer.createSingleProducer创建一个单生产者的RingBuffer
     */
    private boolean multiProducer = false;

}
